package cn.wolfcode.web.feign.fallback;

import cn.wolfcode.common.web.Result;
import cn.wolfcode.domain.Product;
import cn.wolfcode.web.feign.ProductFeign;
import org.springframework.stereotype.Component;

import java.util.List;


@Component
public class ProductFeignFallBack implements ProductFeign {
    @Override
    public Result<List<Product>> queryByIds(List<Long> ids) {
//        兜底数据
        System.out.println("货物远程数据出错啦");
        return null;
    }
}
